package com.cefa.edu.service;

import java.util.HashMap;
import java.util.List;
import com.cefa.edu.dao.EduStageMapper;
import com.cefa.edu.model.EduStage;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Created by cc664 on 2018/8/3.
 */
@Service
public class EduStageService {
    @Autowired
    private EduStageMapper eduStageMapper;

    //根据学生id 获取对应的学习阶段数据
    public  List<HashMap<String,Object>> getEduStageByUserId(Integer userId){

        return eduStageMapper.getEduStageByUserId(userId);
    }

    public Integer getGraduateByStudentId(Integer uId,Integer gradeId) {
        return  eduStageMapper.getGraduateByStudentId(uId,gradeId);
    }
}
